package com.example.ws.service;

import com.example.ws.model.ChatHistory;
import com.example.ws.vo.PageVo;

public interface IChatHistoryService {
    /**
     * 添加聊天记录
     *
     * @param chatHistory
     * @return
     */
    ChatHistory add(ChatHistory chatHistory);

    /**
     * 分页查询聊天记录
     * @param pageNumber
     * @param pageSize
     * @return
     */
    PageVo<ChatHistory> listChatHistory(Integer pageNumber,int pageSize);
}
